<!-- Content -->
<div class="content">
    <div class="title"><h5><?php echo $page_title; ?></h5></div>
    <!-- Form begins -->
    <?php echo \Fuel\Core\Form::open(array('class' => 'mainForm'));?>
        <!-- Input text fields -->
        <fieldset>
            <div class="widget first">
                <div class="rowElem nobg">
                    <?php echo \Fuel\Core\Form::label("Tiêu đề", 'title');?>
                    <div class="formRight">
                        <?php echo \Fuel\Core\Form::input(
                                'title',
                                Fuel\Core\Input::post('title', isset($post) ? $post->title : '')
                        );?>
                    </div>
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Mô tả", "description");?>
                    <div class="formRight">
                        <?php echo \Fuel\Core\Form::textarea(
                                "description", 
                                Fuel\Core\Input::post('description', isset($post) ? $post->description : ''),
                                array("rows" => 8, "cols" => "")
                        );?>
                    </div>
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Trường", "university_id");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::select(
                                "university_id", 
                                Fuel\Core\Input::post('university_id', isset($post) ? $post->university_id : ''),
                                $university, 
                                array("data-placeholder" => "Chọn trường", "class" => "chzn-select", "tabindex" => 2, "style" => "width: 100%;")
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <div class="rowElem nobg">
                    <?php echo \Fuel\Core\Form::label("Hoặc", 'university');?>
                    <div class="formRight">
                        <?php echo \Fuel\Core\Form::input(
                                'university',
                                Fuel\Core\Input::post('university', isset($post) ? $post->university : ''),
                                array('placeholder' => "Thêm trường mới"));?>
                    </div>
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Môn học", "course_id");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::select(
                                "course_id", 
                                Fuel\Core\Input::post('course_id', isset($post) ? $post->course_id : ''),
                                $course, 
                                array("data-placeholder" => "Chọn môn học", "class" => "chzn-select", "tabindex" => 2, "style" => "width: 100%;")
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <div class="rowElem nobg">
                    <?php echo \Fuel\Core\Form::label("Hoặc", 'course');?>
                    <div class="formRight">
                        <?php echo \Fuel\Core\Form::input(
                                'course',
                                Fuel\Core\Input::post('course', isset($post) ? $post->course : ''),
                                array('placeholder' => "Thêm môn học mới"));?>
                    </div>
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Giảng viên", "teacher_id");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::select(
                                "teacher_id", 
                                Fuel\Core\Input::post('teacher_id', isset($post) ? $post->teacher_id : ''),
                                $course, 
                                array("data-placeholder" => "Chọn giảng viên", "class" => "chzn-select", "tabindex" => 2, "style" => "width: 100%;")
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <div class="rowElem nobg">
                    <?php echo \Fuel\Core\Form::label("Hoặc", 'teacher');?>
                    <div class="formRight">
                        <?php echo \Fuel\Core\Form::input(
                                'teacher',
                                Fuel\Core\Input::post('teacher', isset($post) ? $post->teacher : ''),
                                array('placeholder' => "Thêm giảng viên mới"));?>
                    </div>
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Thể loại", "type_id");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::select(
                                "type_id", 
                                Fuel\Core\Input::post('type_id', isset($post) ? $post->type_id : ''),
                                $type, 
                                array("data-placeholder" => "Chọn thể loại", "class" => "chzn-select", "tabindex" => 2, "style" => "width: 100%;")
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Năm", "year");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::select(
                                "year", 
                                Fuel\Core\Input::post('year', isset($post) ? $post->year : ''),
                                $year, 
                                array("data-placeholder" => "Chọn năm", "class" => "chzn-select", "tabindex" => 2, "style" => "width: 100%;")
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <div class="rowElem">
                    <?php echo \Fuel\Core\Form::label("Link file", "link");?>
                    <div class="formRight searchDrop">
                        <?php echo \Fuel\Core\Form::input(
                                "link",
                                Fuel\Core\Input::post('link', isset($post) ? $post->link : '')
                        );?>
                    </div>             
                    <div class="fix"></div>
                </div>
                <input type="submit" value="Submit form" class="basicBtn submitForm mb22" />
                <div class="fix"></div>
            </div>
        </fieldset>
    <?php echo \Fuel\Core\Form::close();?>
</div>